Component({
  data: {
    selected: 0,
    color: "#7A7E83",
    selectedColor: "#3cc51f",
    list: [{
      "selectedIconPath": "/images/tabbar/selectWorkPage.png",
      "pagePath": "pages/workPage/workPage",
      "text": "工作",
      "iconPath": "/images/tabbar/workPage.png"
    }, {
      "selectedIconPath": "/images/tabbar/selectAssistantPage.png",
      "pagePath": "pages/assistantPage/assistantPage",
      "text": "助手",
      "iconPath": "/images/tabbar/assistantPage.png"
    }, {
      "selectedIconPath": "/images/tabbar/selectHomePage.png",
      "pagePath": "pages/homePage/homePage",
      "text": "常用",
      "iconPath": "/images/tabbar/selectHomePage.png"
    }, {
      "selectedIconPath": "/images/tabbar/selectAnalysisPage.png",
      "pagePath": "pages/analysisPage/analysisPage",
      "text": "分析",
      "iconPath": "/images/tabbar/analysisPage.png"
    }, {
      "selectedIconPath": "/images/tabbar/selectMinePage.png",
      "pagePath": "pages/minePage/minePage",
      "text": "我的",
      "iconPath": "/images/tabbar/minePage.png"
    }]
  },
  attached() {},
  methods: {
    switchTab(e) {
      console.log(e)
      const data = e.currentTarget.dataset;
      const url = data.path;
      wx.switchTab({
        url: '/' + url
      })
    }

  },
})